package cn.com.api.resultpage;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单页面
 * 
 * @author suyy
 * 
 */
public class MyOrderPage implements Serializable {

	private static final long serialVersionUID = 1L;
	/** 用户id */
	private String u_id;
	/** 订单号 */
	private String titles;
	/** 订单 id */
	private Integer did;
	/** 商铺id */
	private Integer shop_id;
	/** 商品ids */
	private String tel;
	/** 货品ids */
	private String product_ids;
	/** 购物记录car_ids */
	private String car_ids;
	/** 支付时间 */
	private String payTime;
	/** 使用余额 */
	private double remainMoney;
	/** 订单总金额 */
	private double money;
	/** 支付状态 0:已下单未支付 1:已支付 2:已退款 */
	private Integer payStatus;
	/** 支付方式 */
	private String payType;
	/**
	 * 订单状态 1： 已下订单 2送餐员领取任务 3 用户未领取 4用户已领取 5 订单完成 6订单因故未完成 原因 9删除
	 * */
	private Integer enable;
	/** 商铺名称 */
	private String shopName;
	/** 商铺logo */
	private String logo;
	/** 是否评价 0-未评价 1-已评价 */
	private String isEvaluate;
	/**
	 * 订单物流状态 1:商户未确认 2:商户确认接受订单 3:等待配送接单 4:配送确认接受订单 5:配送取货成功(配送中) 6:用户确认收货 7:退货
	 */
	private Integer logisticsStatus;
	/** 下单时间 */
	private String appDate;
	/** 该订单的商品list */
	private List<GoodsPage> goodsList;
	/** 该订单的货品 */
	private List<CarOrderPage> productList;
	/** 订单显示状态-用于前台显示-用户 */
	private Integer userStatus;
	/** 订单显示状态-用于前台显示-商户 */
	private Integer shopStatus;
	/** 订单显示状态-用于前台显示-配送 */
	private Integer sendStatus;
	/** 商铺是否自营    0-否 1-是*/
	private Integer ziYing;
	/** 收货地址 */
	private String address;
	/** 收货时间 */
	private String takeGoodsTime;
	/** 收货人 */
	private String name;
	/** 联系电话 */
	private String mobile;
	/** 配送时间 */
	private String sendDate;

	/** 催单类型 0-提醒接单 1-提醒发货 */
	private Integer messageType;

	/** 物流表物流状态 */
	private Integer status;
	/** 订单商品总金额 */
	private double sumGoodsPrice;
	/** 订单配送费 */
	private double sendFee;
	/** 客户对商品的评价 */
	private Integer goodsGrade;
	/** 客户对配送的评价 */
	private Integer sendGrade;
	
	/** 店铺地址 */
	private String shopAddress;
	/** 店铺电话 */
	private String shopPhone;
	
	/** 收货地址的经度 */
	private String longitude;
	/** 收货地址的纬度 */
	private String latitude; 
	
	/** 是否准时送达：0-准时，1-超时，2-早达 */
	private Integer is_ontime;
	/** 配送员到商家的距离 */
	private double to_shop_distence;
	/** 商家到订单收货地址的距离 */
	private double to_user_distence;
	
	/** 订单类型 */
	private Integer orderType;
	/** 订单积分兑换所需积分 */
	private Integer sumPoints;
	/** 订单编号 */
	private Integer orderNum;
	
	/** 订单备注 */
	private String remark;
	
	/** 城市id */
	private Integer city_id;
	/** 订单完成后多长时间可以申请退货--天 */
	private Integer return_goods_time;
	/**是否启用餐盒费*/
	private Integer is_lunchbox;
	/**餐盒费单价*/
	private Double lunchbox_price;
	/**商品数量*/
	private Integer goodscount;
	/**该店铺的餐盒费金额*/
	private Double sum_lunchbox_price;
	
	/** 是否是 衣物干洗 0-否 1-是*/
	private Integer is_clothes = 0;
	/** 配送员姓名 */
	private String send_name = "";
	/** 配送员电话 */
	private String send_mobile = "";

	public String getU_id() {
		return u_id;
	}

	public void setU_id(String u_id) {
		this.u_id = u_id;
	}

	public String getTitles() {
		return titles;
	}

	public void setTitles(String titles) {
		this.titles = titles;
	}

	public Integer getShop_id() {
		return shop_id;
	}

	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime.substring(0, payTime.length() - 2);
	}

	public double getRemainMoney() {
		return remainMoney;
	}

	public void setRemainMoney(double remainMoney) {
		this.remainMoney = remainMoney;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public Integer getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getIsEvaluate() {
		return isEvaluate;
	}

	public void setIsEvaluate(String isEvaluate) {
		this.isEvaluate = isEvaluate;
	}

	public Integer getLogisticsStatus() {
		return logisticsStatus;
	}

	public void setLogisticsStatus(Integer logisticsStatus) {
		this.logisticsStatus = logisticsStatus;
	}

	public String getAppDate() {
		return appDate;
	}

	public void setAppDate(String appDate) {
		this.appDate = appDate.substring(0, appDate.length() - 2);
	}

	public List<GoodsPage> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<GoodsPage> goodsList) {
		this.goodsList = goodsList;
	}

	public Integer getDid() {
		return did;
	}

	public void setDid(Integer did) {
		this.did = did;
	}

	public Integer getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}

	public Integer getShopStatus() {
		return shopStatus;
	}

	public void setShopStatus(Integer shopStatus) {
		this.shopStatus = shopStatus;
	}

	public Integer getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(Integer sendStatus) {
		this.sendStatus = sendStatus;
	}

	public Integer getZiYing() {
		return ziYing;
	}

	public void setZiYing(Integer ziYing) {
		this.ziYing = ziYing;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTakeGoodsTime() {
		return takeGoodsTime;
	}

	public void setTakeGoodsTime(String takeGoodsTime) {
		this.takeGoodsTime = takeGoodsTime.substring(0,
				takeGoodsTime.length() - 2);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getMessageType() {
		return messageType;
	}

	public void setMessageType(Integer messageType) {
		this.messageType = messageType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public double getSumGoodsPrice() {
		return sumGoodsPrice;
	}

	public void setSumGoodsPrice(double sumGoodsPrice) {
		this.sumGoodsPrice = sumGoodsPrice;
	}

	public double getSendFee() {
		return sendFee;
	}

	public void setSendFee(double sendFee) {
		this.sendFee = sendFee;
	}

	public Integer getGoodsGrade() {
		return goodsGrade;
	}

	public void setGoodsGrade(Integer goodsGrade) {
		this.goodsGrade = goodsGrade;
	}

	public Integer getSendGrade() {
		return sendGrade;
	}

	public void setSendGrade(Integer sendGrade) {
		this.sendGrade = sendGrade;
	}

	public String getProduct_ids() {
		return product_ids;
	}

	public void setProduct_ids(String product_ids) {
		this.product_ids = product_ids;
	}

	public String getCar_ids() {
		return car_ids;
	}

	public void setCar_ids(String car_ids) {
		this.car_ids = car_ids;
	}

	public List<CarOrderPage> getProductList() {
		return productList;
	}

	public void setProductList(List<CarOrderPage> productList) {
		this.productList = productList;
	}

	public String getSendDate() {
		return sendDate;
	}

	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}

	public String getShopAddress() {
		return shopAddress;
	}

	public void setShopAddress(String shopAddress) {
		this.shopAddress = shopAddress;
	}

	public String getShopPhone() {
		return shopPhone;
	}

	public void setShopPhone(String shopPhone) {
		this.shopPhone = shopPhone;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public Integer getIs_ontime() {
		return is_ontime;
	}

	public void setIs_ontime(Integer is_ontime) {
		this.is_ontime = is_ontime;
	}

	public double getTo_shop_distence() {
		return to_shop_distence;
	}

	public void setTo_shop_distence(double to_shop_distence) {
		this.to_shop_distence = to_shop_distence;
	}

	public double getTo_user_distence() {
		return to_user_distence;
	}

	public void setTo_user_distence(double to_user_distence) {
		this.to_user_distence = to_user_distence;
	}

	public Integer getOrderType() {
		return orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public Integer getSumPoints() {
		return sumPoints;
	}

	public void setSumPoints(Integer sumPoints) {
		this.sumPoints = sumPoints;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getCity_id() {
		return city_id;
	}

	public void setCity_id(Integer city_id) {
		this.city_id = city_id;
	}

	public Integer getReturn_goods_time() {
		return return_goods_time;
	}

	public void setReturn_goods_time(Integer return_goods_time) {
		this.return_goods_time = return_goods_time;
	}

	public Integer getIs_lunchbox() {
		return is_lunchbox;
	}

	public void setIs_lunchbox(Integer is_lunchbox) {
		this.is_lunchbox = is_lunchbox;
	}

	public Double getLunchbox_price() {
		return lunchbox_price;
	}

	public void setLunchbox_price(Double lunchbox_price) {
		this.lunchbox_price = lunchbox_price;
	}

	public Integer getGoodscount() {
		return goodscount;
	}

	public void setGoodscount(Integer goodscount) {
		this.goodscount = goodscount;
	}

	public Double getSum_lunchbox_price() {
		return sum_lunchbox_price;
	}

	public void setSum_lunchbox_price(Double sum_lunchbox_price) {
		BigDecimal b = new BigDecimal(sum_lunchbox_price);
		this.sum_lunchbox_price = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}

	public Integer getIs_clothes() {
		return is_clothes;
	}

	public void setIs_clothes(Integer is_clothes) {
		this.is_clothes = is_clothes;
	}

	public String getSend_name() {
		return send_name;
	}

	public void setSend_name(String send_name) {
		this.send_name = send_name;
	}

	public String getSend_mobile() {
		return send_mobile;
	}

	public void setSend_mobile(String send_mobile) {
		this.send_mobile = send_mobile;
	}
	
	
	

}
